Automated Analysis of CLP(FD) Program Execution Traces
نویسندگان
چکیده
The operational behavior of constraint programs is not easy to understand. We propose an approach where high-level views of executions are built on top of low-level tracers. We describe an analysis module which can analyze on the y execution traces. Application programmers or end-users can easily program trace analysis tools without knowing any implementation details about the solver or the tracer. Most of the trace ltering can be done without storing or even generating any trace information. The analysis can thus be very eecient. The analysis scheme was initially designed for the analysis of Prolog. It has been extended in order to cope with the constraint store. In this article we give three signiicant examples of analyses of CLP(FD) constraint propagation. This study shows that the scheme is generic enough to accommodate yet another, quite diierent, trace model.
منابع مشابه
Constraint Logic Programming for program analysis
Constraint Logic Programming (CLP) has been traditionally applied to the modelling of complex problems, especially combinatorial problems, and to model knowledge bases. In this presentation, we focus on using CLP for program analysis and verification. First we consider the representation of program behavior: the rules and constraints of CLP provides for a natural specification of programs as a ...
متن کاملPrototyping CLP(FD) tracers: a trace model and an experimental validation environment
Developing and maintaining CLP programs requires visualization and explanation tools. However, existing tools are built in an ad hoc way. Therefore porting tools from one platform to another is very difficult. We have shown in previous work that, from a fine-grained execution trace, a number of interesting views about logic program executions could be generated by trace analysis. In this articl...
متن کاملAn Experimental Comparison of Constraint Logic Programming and Answer Set Programming
Answer Set Programming (ASP) and Constraint Logic Programming over finite domains (CLP(FD)) are two declarative programming paradigms that have been extensively used to encode applications involving search, optimization, and reasoning (e.g., commonsense reasoning and planning). This paper presents experimental comparisons between the declarative encodings of various computationally hard problem...
متن کاملExecution Trace Exploration and Analysis Using Ontologies
Dynamic analysis is the analysis of the properties of a running program. In order to perform dynamic analysis, information about the running program is often collected through execution traces. Exploring and analyzing these traces can be an issue due to their size and that knowledge of a human expert is often needed to derive the required conclusions. In this paper we provide a framework in whi...
متن کاملComputer Science Technical Reports Structweb: Biosequence Structure Searching on the Web Using Clp(fd) Structweb: Biosequence Structure Searching on the Web Using Clp(fd)
We describe an implementation in a nite domain constraint logic programming language of a web-based biosequence structure searching program. We have used the clp(FD) language for the implementation of our search engine and have ported the PiLLoW libraries to clp(FD). Our program is based on CBSDL, a constraint based structure description language for biosequences, and uses constrained descripti...
متن کامل